home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / apt-xapian-index.postinst < prev    next >
Text File  |  2008-08-20  |  453b  |  18 lines

  1. #!/bin/sh -e
  2.  
  3. case "$1" in
  4.     configure)
  5.     # Just checking the main directory with -d should prevent the indexing
  6.     # to be started while an indexing is already going on, as the first
  7.     # thing that update-apt-xapian-index does is to create the directory if
  8.     # it is missing
  9.         if [ ! -d /var/lib/apt-xapian-index ]
  10.     then
  11.         echo "apt-xapian-index: Building new index in background..."
  12.         /usr/sbin/update-apt-xapian-index --quiet &
  13.     fi
  14.         ;;
  15. esac
  16.  
  17.  
  18.